package view;

import fire.Main;

public class ViewFollowPlayer implements ViewState {

	private Main main;

	public ViewFollowPlayer(Main main) {
		this.main = main;
	}

	@Override
	public void viewUpdate() {
		int x = (int) main.getPlayer().x;
		int y = (int) main.getPlayer().y;
		main.setViewOffset(x, y, true);
	}

}
